import request from '@/utils/request'

// 分页列表
export function listBanner(query) {
  return request({
    url: '/official/banner/list',
    method: 'get',
    params: query
  })
}

// 保存（含新增/编辑，依据是否有 id 区分）
export function saveBanner(data) {
  return request({
    url: '/official/banner/save',
    method: 'post',
    data: data
  })
}

// 删除
export function delBanner(id) {
  return request({
    url: '/official/banner/delete/' + id,
    method: 'delete'
  })
}


